import React from 'react';
import { createRoot } from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import { RecoilRoot } from "recoil";
import PageRoutes from './routes';
import './index.css';
import reportWebVitals from './reportWebVitals';

const root = createRoot(
  document.getElementById('root') as HTMLElement
);

root.render(
  <React.StrictMode>
    <RecoilRoot>
        <BrowserRouter>
            <PageRoutes />
        </BrowserRouter>
      </RecoilRoot>
  </React.StrictMode>
);

reportWebVitals(console.info);
